import { defHttp } from '/@/utils/http/axios';

enum Api {
  sendCodeApi = '/common/smsAuthCode',
}

export const sendCodeApi = (p: any) => {
  if (!p) {
    return;
  }

  return defHttp.get({
    url: Api.sendCodeApi,
    params: {
      phone: p,
    },
  });
};
